summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCharles Lombardo <clombardo169@gmail.com>2023-03-07 23:19:22 +0100
committerbunnei <bunneidev@gmail.com>2023-06-03 09:05:36 +0200
commit88b9d484e8d1ee5b6ccb83eee018cc2b62d8c990 (patch)
tree58e1e97242013c94cf063a47db59265f8acea3f5
parentandroid: Convert SubmenuSetting to Kotlin (diff)
downloadyuzu-88b9d484e8d1ee5b6ccb83eee018cc2b62d8c990.tar
yuzu-88b9d484e8d1ee5b6ccb83eee018cc2b62d8c990.tar.gz
yuzu-88b9d484e8d1ee5b6ccb83eee018cc2b62d8c990.tar.bz2
yuzu-88b9d484e8d1ee5b6ccb83eee018cc2b62d8c990.tar.lz
yuzu-88b9d484e8d1ee5b6ccb83eee018cc2b62d8c990.tar.xz
yuzu-88b9d484e8d1ee5b6ccb83eee018cc2b62d8c990.tar.zst
yuzu-88b9d484e8d1ee5b6ccb83eee018cc2b62d8c990.zip
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/BooleanSetting.java23
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/BooleanSetting.kt9
2 files changed, 9 insertions, 23 deletions
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/BooleanSetting.java b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/BooleanSetting.java
deleted file mode 100644
index 965f1b2a2..000000000
--- a/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/BooleanSetting.java
+++ /dev/null
@@ -1,23 +0,0 @@
-package org.yuzu.yuzu_emu.features.settings.model;
-
-public final class BooleanSetting extends Setting {
- private boolean mValue;
-
- public BooleanSetting(String key, String section, boolean value) {
- super(key, section);
- mValue = value;
- }
-
- public boolean getValue() {
- return mValue;
- }
-
- public void setValue(boolean value) {
- mValue = value;
- }
-
- @Override
- public String getValueAsString() {
- return mValue ? "True" : "False";
- }
-}
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/BooleanSetting.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/BooleanSetting.kt
new file mode 100644
index 000000000..a315a2919
--- /dev/null
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/BooleanSetting.kt
@@ -0,0 +1,9 @@
+package org.yuzu.yuzu_emu.features.settings.model
+
+class BooleanSetting(
+ key: String,
+ section: String,
+ var value: Boolean
+) : Setting(key, section) {
+ override val valueAsString = if (value) "True" else "False"
+}